package com.cj.display_sys.http

import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query

interface HttpService {


    @GET("/screen/screenIndex/getPark")
    suspend fun getPark(): ResponseData<ParkEntity>

    @GET("/screen/screenIndex/getWater")
    suspend fun getWater(): ResponseData<ParkEntity>

    //@GET("/screen/activity/list")
    @GET("/screen/activity/getReleaseActivityList")
    suspend fun getNews(): ResponseData<ParkEntity>

    @GET("/screen/activity/{id}")
    suspend fun getNewsDetails(id: String)

    @POST("/screen/weather/getWeatherLive")
    suspend fun getWeather(@Query("cityName") cityName: String): ResponseData<Weather>

    @Headers("Cache-control:no-cache")
    @POST("/screen/screenNotice/getTheNotice")
    suspend fun getNotice(): ResponseData<Notice>
    
}
